export default function JudgmentEnvironment() {
	let userAgentStr = window.navigator.userAgent;
	let string = "";
	let stringtwo = "";
	if (/Mobile/.test(userAgentStr)) {
		string = "Mobile端";
	} else {
		string = "PC端";
	}
	if (/MicroMessenger/.test(userAgentStr)) {
		stringtwo = "WeChat(微信)";
	} else if (/AlipayClient/.test(userAgentStr)) {
		stringtwo = "Alipay(支付宝)";
	} else if (/QQTheme/.test(userAgentStr)) {
		stringtwo = "QQ";
	} else if (/HeyTapBrowser/.test(userAgentStr)) {
		stringtwo = "HeyTapBrowser(HeyTap)";
	} else if (/VivoBrowser/.test(userAgentStr)) {
		stringtwo = "VivoBrowser(vivo)";
	} else if (/MQQBrowser/.test(userAgentStr)) {
		stringtwo = "MQQBrowser(QQ浏览器移动版)";
	} else if (/QQBrowser/.test(userAgentStr)) {
		stringtwo = "QQBrowser(QQ浏览器)";
	} else if (/baiduboxapp/.test(userAgentStr)) {
		stringtwo = "baiduboxapp(百度app)";
	} else if (/Weibo/.test(userAgentStr)) {
		stringtwo = "Weibo(新浪微博)";
	} else if (/iqiyi/.test(userAgentStr)) {
		stringtwo = "iqiyi(爱奇艺)";
	} else if (/aweme/.test(userAgentStr)) {
		stringtwo = "aweme(抖音)";
	} else if (/kdtUnion_iting/.test(userAgentStr)) {
		stringtwo = "kdtUnion_iting(喜马拉雅)";
	} else if (/DingTalk/.test(userAgentStr)) {
		stringtwo = "DingTalk(钉钉)";
	} else if (/UCBrowser/.test(userAgentStr)) {
		stringtwo = "UCBrowser(UC浏览器)";
	} else if (/SamsungBrowser/.test(userAgentStr)) {
		stringtwo = "SamsungBrowser(三星浏览器)";
	} else if (/HUAWEIEVA/.test(userAgentStr)) {
		stringtwo = "huaweiBrowser(华为浏览器)";
	} else if (/NokiaBrowser/.test(userAgentStr)) {
		stringtwo = "NokiaBrowser(诺基亚浏览器)";
	} else if (/Opera/.test(userAgentStr)) {
		stringtwo = "Opera(欧朋)";
	} else if (/Firefox/.test(userAgentStr)) {
		stringtwo = "Firefox(火狐)";
	} else if (/Chrome/.test(userAgentStr)) {
		stringtwo = "Chrome(谷歌)";
	} else if (/Safari/.test(userAgentStr)) {
		stringtwo = "Safari(苹果)";
	} else {
		stringtwo = "other";
	}

	return string + stringtwo;
}
